<div class="layui-card layui-right-bar">
	<div class="layui-row pt-3 px-3 py-2">
		<ul class="layui-col-space12">
			<li class="layui-col-xs3">
				<a href="javascript:;" data-href="/home/enterpriseDepartment/index" data-id="230" class="tab-a" data-title="部门架构">
					<i class="iconfont icon-zhandianshezhi"></i>
					<cite>部门架构</cite>
				</a>
			</li>
			<li class="layui-col-xs3">
				<a href="javascript:;" data-href="/home/user/index" data-id="144" class="tab-a" data-title="员工管理">
					<i class="iconfont icon-xueshengbaoming"></i>
					<cite>员工管理</cite>
				</a>
			</li>
			<li class="layui-col-xs3">
				<a href="javascript:;" data-href="/home/item/index" data-id="209" class="tab-a" data-title="项目管理">
					<i class="iconfont icon-caidanguanli"></i>
					<cite>项目管理</cite>
				</a>
			</li>
			<li class="layui-col-xs3">
				<a href="javascript:;" data-href="/home/equipment/index" data-id="216" class="tab-a" data-title="固定资产管理">
					<i class="iconfont icon-chuangjianxitong"></i>
					<cite>固定资产管理</cite>
				</a>
			</li>
		</ul>
		<ul class="layui-col-space12">
			<li class="layui-col-xs3">
				<a href="javascript:;" data-href="/home/goods/index" data-id="171" class="tab-a" data-title="物品管理">
					<i class="iconfont icon-dianshang"></i>
					<cite>物品管理</cite>
				</a>
			</li>
			<li class="layui-col-xs3">
				<a href="javascript:;" data-href="/home/userWorkHours/index" data-id="79" class="tab-a" data-title="员工工时">
					<i class="iconfont icon-yunyingzheguanli"></i>
					<cite>员工工时</cite>
				</a>
			</li>
			<li class="layui-col-xs3">
				<a href="javascript:;" data-href="/home/EquipmentWorkHours/index" data-id="82" class="tab-a" data-title="固定资产工时">
					<i class="iconfont icon-mubiaoguanli"></i>
					<cite>固定资产工时</cite>
				</a>
			</li>
			<li class="layui-col-xs3">
				<a href="javascript:;" data-href="/home/wages/index" data-id="228" class="tab-a" data-title="工资管理">
					<i class="iconfont icon-caiwushezhi"></i>
					<cite>工资管理</cite>
				</a>
			</li>
		</ul>
	</div>
</div>
<script>
function layoutFastentry(tool,work,table){
	$('.work-add').on('click',function(){
		work.add(0,{'id':0});
	})
	$('.report-add').on('click',function(){
		var type=[{'id':1,'title':'日报'},{'id':2,'title':'周报'},{'id':3,'title':'月报'}];
		var tablereport;
		layer.open({
			title:'选择汇报类型',
			type:1,
			area:['360px','300px'],
			content:'<div style="width:325px; padding:15px 15px 0"><div id="selectType"></div></div>',
			success:function(){
				tablereport=table.render({
					elem: '#selectType',
					cols: [[ //标题栏
						{type:'radio',title: '选择'},
						{field: 'title', title: '汇报类型'}
					]],
					data: type
				  });			
			},
			btn:['确定'],
			yes: function(idx){
				var checkStatus = table.checkStatus(tablereport.config.id);
				var data = checkStatus.data;
				if(data.length>0){
					tool.side('/oa/work/add?type='+data[0].id);
					layer.close(idx);
				}
				else{
					layer.msg('请选择汇报类型');
					return false;
				}
			}
		})
	});
}
</script>